import { defHttp } from "@/utils/http";

// ERP 订单统计API
export const patOrdersApi = {
	// 获得订单统计分页
	patOrdersList: async (params: any) => {
		return await defHttp.get({ url: `/his/pat-orders/orderStatistics`, params });
	},
	// 新增订单统计
	patOrdersCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/pat-orders/create`, data });
	},

	// 修改订单统计
	patOrdersUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/pat-orders/update`, data });
	},

	// 删除订单统计
	patOrdersDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/pat-orders/delete?id=` + id });
	}
};
